import Request from '@/utils/request'


export function createBatch(){ //创建批次
  return new Request({
    url: 'sapi/grade/createBatch',
    method: 'get',
  })
}

export function selectHaveList(params){ //我的已办
  return new Request({
    url: 'sapi/daiban/selectHaveList?dbman=' + params.dbman + '&title=' + params.title,
    method: 'get',
  })
}

export function selectScoreList(params){ //评分统计列表
  return new Request({
    url: 'sapi/statistics/selectScoreList',
    method: 'post',
    data:params
  })
}


export function openShouPinfen(){ //公司手动启动
  return new Request({
    url: 'sapi/ppp/gsgrade',
    method: 'get',
  })
}

export function openShouPinfendw(){ //单位手动启动
  return new Request({
    url: 'sapi/ppp/dwgrade',
    method: 'get',
  })
}


export function getselectList(params){ //待办列表
  return new Request({
    url: 'sapi/daiban/selectList?dbman=' + params.dbman + '&isRead=' + params.isRead + '&term=' + params.term + '&title=' + params.title,
    method: 'get',
  })
}

export function selectScoreupdate(params){ //待办列表未读改变状态
  return new Request({
    url: 'sapi/daiban/update?id=' + params.id,
    method: 'post',
  })
}


export function getShujulist(params){ //跟踪流程列表
  return new Request({
    url: 'sapi/selectwenti/selectwtsxlist',
    method: 'post',
    data:params
  })
}

export function getGenzong(params){ //流程走向
  return new Request({
    url: 'sapi/selectwenti/wentigz?id=' + params.id,
    method: 'get',
  })
}

export function launchRectificationapi(params){ //我的发起整改
  console.log(params)
  return new Request({
    url: 'sapi/daiban/selectLaunchList',
    method: 'post',
    data:params
  })
}

export function launchEvaluation(params){ //我的发起考评
  return new Request({
    url: 'sapi/daiban/selectLaunchList' ,
    method: 'post',
    data:params
  })
}

export function handlingRectification(params){ //我的已办整改
  return new Request({
    url: 'sapi/daiban/selectHandlingList' ,
    method: 'post',
    data:params
  })
}

export function handlingEvaluation(params){ //我的已办考评
  return new Request({
    url: 'sapi/daiban/selectHandlingList' ,
    method: 'post',
        data:params
  })
}

export function QuestionDetails(params){ //查看问题查询详情 //待办界面查看问题详情
  return new Request({
    url: 'sapi/daiban/detail' ,
    method: 'post',
    data:params
  })
}


export function scoreDwDetailedList(params){ //单位评分查询详情
  return new Request({
    url: 'sapi/statistics/scoreDwDetailedList' ,
    method: 'post',
    data:params
  })
}

export function scoreGsDetailedList(params){ //公司评分查询详情,三层
  return new Request({
    url: 'sapi/statistics/scoreGsDetailedList' ,
    method: 'post',
    data:params
  })
}

export function selectDetailedTotalList(params){ //公司考评二层
  return new Request({
    url: 'sapi/statistics/selectDetailedTotalList' ,
    method: 'post',
    data:params
  })
}


export function scoreDeptList(params){ //评分查询详情
  return new Request({
    url: 'sapi/statistics/scoreDeptList' ,
    method: 'post',
    data:params
  })
}


export function selectInst(){ //考评阶段时间显示
  return new Request({
    url: 'sapi/daiban/selectInst' ,
    method: 'get'
  })
}



